package com.zjq.test;/*
 * 版权信息: 北京千⾥马网信科技有限公司</br>
 * Copyright ©2008-2018. All rights reserved. 京ICP备16007318号
 */

import java.util.Objects;

/**
 * @author jessie
 * @version 1.0
 * @date 2021/1/15
 */
public class Fund {
    private String code;
    private Double amount;

    public Fund(String code, Double amount) {
        this.code = code;
        this.amount = amount;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Fund fund = (Fund) o;
        return Objects.equals(code, fund.code) &&
                Objects.equals(amount, fund.amount);
    }

    @Override
    public int hashCode() {
        return Objects.hash(code, amount);
    }


}
